rectangle operation